-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix PIL version check #7716
fix PIL version check #7716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but PIL 7 was released in 2020 and there's no chance our CI still relies on it. We should probably be fixing this test or delete it
Since it has been skipped since quite some time now and no one complained, I'm in favor of removal. |
OK to remove as well, as long as we have our decent |
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Reviewed By: matteobettini Differential Revision: D48642310 fbshipit-source-id: 572982b35611216a46049a2d5309fd00cd2ab901
Example failure: https://hud.pytorch.org/pr/pytorch/vision/7715#14733928493
The string comparison worked before, since the major version was < 10:
With the new release of
Pillow==10.0.0
, this no longer works:This PR changes the check to a numeric one to avoid this issue.
I've
grep
'ed through the codebase and there is no other occurrence ofPIL.__version__
orImage.__version__
.